package com.csx.array;

/**
 * @author: 陈胤训
 * @create: 2019-03-22 11:51
 **/
public class ArrayMain {
    public static void main(String[] args) {

        Array<Integer> array = new Array<>();
        for (int i = 0; i < 10; i++) {
            array.addLast(i);
        }
        System.out.println(array);
        array.add(1,100);
        array.addFirst(200);
        System.out.println(array);
        array.deleteFirst();
        System.out.println(array);
        array.deleteLast();
        System.out.println(array);
        array.delete(3);
        array.deleteElement(7);
        System.out.println(array);

    }
}
